﻿using System;
using CSLua;

namespace CSLuaTest
{
	// Token: 0x02000002 RID: 2
	internal class Program
	{
		// Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
		private static int Main(string[] args)
		{
			if (args.Length < 2)
			{
				Console.Write("缺少参数");
				Program.PrintHelp();
				return -1;
			}
			string dllFile = args[0];
			string outFolder = args[1];
			Console.WriteLine();
			Console.WriteLine("********************************************************************************************");
			Console.WriteLine("*     TKLua      Translater");
			Console.WriteLine("*     Version    2.0");
			Console.WriteLine("*     DLLFile    " + dllFile);
			Console.WriteLine("*     OUTFold    " + outFolder);
			Console.WriteLine("********************************************************************************************");
			Console.WriteLine("------ Translater start  ------");
			new LuaAssemblyGenerator().GeneratorAssembly(dllFile, outFolder);
			Console.WriteLine("------ Translater finish ------");
			Console.WriteLine();
			Console.WriteLine();
			return 0;
		}

		// Token: 0x06000002 RID: 2 RVA: 0x00002151 File Offset: 0x00000351
		private static void PrintHelp()
		{
			Console.WriteLine("TK_CSLua.exe [dll file] [out folder]");
		}
	}
}
